<div class="col-lg-10">
	<h1>Обработанные заказы</h1>
	<hr>
	<?php
		if (isset($_GET['del_c'])) delete_card($_GET['del_c']); 
		$data_order = get_order();
	?>
	<table class="table">
		<tr>
			<th>Id корзины</th>
			<th>Название товара</th>
			<th>Количество товара</th>
			<th>Общая цена</th>
			<th>Инфо. о пользователе</th>
			<th>-</th>
		</tr>
		<?php
			foreach ($data_order as $key => $value) {
				if ($value['status'] == 0) continue;
				$price_all = $value['quontity'] * $value['price'];
				?>
				<tr>
					<td><?=$value['id']?></td>
					<td><?=$value['name']?></td>
					<td><?=$value['quontity']?></td>
					<td><?=$price_all?></td>
					<td><?=$value['info_user']?></td>
					<td>
						<a href="<?=$_SERVER['PHP_SELF']?>?p=process_order&del_c=<?=$value['id']?>" class="btn btn-warning">Удалить</a>
					</td>
				</tr>
				<?php
			}
		?>
	</table>
</div>